// Copyright 2022 a.o.smith ALL Rights Reserved
package com.liuxinlong.modules.dao.impl;

import com.liuxinlong.modules.dao.UserBrowseRecordDao;
import com.liuxinlong.modules.entity.BrowseRecord;
import com.liuxinlong.modules.mapper.UserBrowseRecordMapper;
import com.baomidou.mybatisplus.service.impl.ServiceImpl;
import org.springframework.stereotype.Service;

import java.util.List;
import java.util.Map;

/**
 * 类描述
 * <p>
 * 此类关联设计的功能
 *
 * @author liuxinlong@hotwater.com.cn
 * @version 1.0.0
 * @since 2023年5月16日
 */
@Service
public class UserBrowseRecordDaoImpl extends ServiceImpl<UserBrowseRecordMapper, BrowseRecord> implements UserBrowseRecordDao {


    @Override
    public List<BrowseRecord> pageUserBrowseRecordList(Map<String, Object> queryParam) {
        return baseMapper.pageUserBrowseRecordList(queryParam);
    }

    @Override
    public int getUserBrowseRecordCount(Map<String, Object> queryParam) {
        return baseMapper.getUserBrowseRecordCount(queryParam);
    }

    @Override
    public BrowseRecord getUserBrowseRecord(String businessId, String userId, String currentDate) {
        return baseMapper.getUserBrowseRecord(businessId, userId, currentDate);
    }
}
